package com.sbs.gaoxinqutoilet.adapter;


import android.view.View;

import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sbs.gaoxinqutoilet.R;
import com.sbs.gaoxinqutoilet.entity.GongGaoEntity;
import com.zhy.autolayout.utils.AutoUtils;

import java.util.List;

/**
 * Created by 聪明一只哈 on 2018/5/30.
 * Time: 2018/5/30  17:37
 */

public class GongGaoAdapter extends BaseQuickAdapter<GongGaoEntity.DataBean, GongGaoAdapter.GongGaoViewHolder> {


    public GongGaoAdapter(@LayoutRes int layoutResId, @Nullable List<GongGaoEntity.DataBean>  data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(GongGaoViewHolder helper, GongGaoEntity.DataBean item) {


        helper.setText(R.id.tv_gonggao, item.getNt_title());


    }

    public class GongGaoViewHolder extends BaseViewHolder {

        public GongGaoViewHolder(View view) {
            super(view);
            AutoUtils.auto(view);
        }
    }
}
